package tds.model15.version3;
/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName Notifier
 * @Description 通知者的抽象类
 * @author tds
 * @Date 2020/1/31 20:53
 * @version 1.0.0
 */
public abstract class Notifier {
    private EventHandler eventHandler = new EventHandler();

    public EventHandler getEventHandler() {
        return eventHandler;
    }

    public void setEventHandler(EventHandler eventHandler) {
        this.eventHandler = eventHandler;
    }

    /**
     * @Description 增加观察者
     * @param object
     * @param methodName
     * @param args
     * @return void
     */
    public abstract void addListener(Object object, String methodName, Object... args);

    /**
     * @Description 通知观察者
     * @param
     * @return void
     */
    public abstract void notifyX();
}
